﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace SportStore.Domain.Entities
{
    [Table(Name="Products")]
    public class Product
    {
        [Column(IsPrimaryKey=true, IsDbGenerated=true, AutoSync= AutoSync.OnInsert)]
        public int ProductId { get; set; }
        [Column]
        public string Name { set; get; }
        [Column]
        public string Description { set; get; }
        [Column]
        public decimal Price { set; get; }
        [Column]
        public string Category { set; get; }
    }
}
